package ${servicePackage};

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${entityPackage};
import ${repositoryPackage};
import cn.anosi.service.base.impl.BaseServiceImpl;


@Service
public class ${entity}Service extends BaseServiceImpl<${entity}>{

	@Autowired
	protected ${entity}Service(${entity}Repository ${entity?uncap_first}Repository) {
		super(${entity?uncap_first}Repository);
	}

	@Autowired
	protected ${entity}Repository ${entity?uncap_first}Repository;


	public ${entity} findOne(Integer id){
		return ${entity?uncap_first}Repository.findOne(id);
	}
}
